<?php

namespace app\api\controller\user;

use app\api\controller\Base;
use app\common\service\lib\Face;
use think\Request;

class FaceLogin extends Base
{
    /**
     * 人脸检测
     *
     * @return \think\Response
     */
    public function index(Request $request)
    {
        $face = Face::getInstance();

        return $face->index($request);
    }

    /**
     * 人臉匹配.
     *
     * @return \think\Response
     */
    public function faceJc(Request $request)
    {
        $face = Face::getInstance();
        return $face->faceJc($request);
    }

    /**
     * 人脸注册
     *
     * @param  \think\Request  $request
     * @return \think\Response
     */
    public function faceRegister(Request $request)
    {
        $face = Face::getInstance();
        return $face->faceRegister($request);
    }


    /**
     * 显示指定的资源
     *
     * @param  int  $id
     * @return \think\Response
     */
    public function testingUser(Request $request)
    {
        $face = Face::getInstance();
        return $face->testingUser($request);
    }

    /**
     * 显示编辑资源表单页.
     *
     * @param  int  $id
     * @return \think\Response
     */
    public function updateFace(Request $request)
    {
        $face = Face::getInstance();
        return $face->updateFace($request);
    }

    /**
     * 保存更新的资源
     *
     * @param  \think\Request  $request
     * @param  int  $id
     * @return \think\Response
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * 删除指定资源
     *
     * @param  int  $id
     * @return \think\Response
     */
    public function delete($id)
    {
        //
    }
}
